import request from '@/utils/request'

// 查询入账列表列表
export function listBillList(query) {
  return request({
    url: '/finance/billList/list',
    method: 'get',
    params: query
  })
}

// 查询入账列表详细
export function getBillList(id) {
  return request({
    url: '/finance/billList/' + id,
    method: 'get'
  })
}

// 新增入账列表
export function addBillList(data) {
  return request({
    url: '/finance/billList',
    method: 'post',
    data: data
  })
}

// 修改入账列表
export function updateBillList(data) {
  return request({
    url: '/finance/billList',
    method: 'put',
    data: data
  })
}

// 删除入账列表
export function delBillList(id) {
  return request({
    url: '/finance/billList/' + id,
    method: 'delete'
  })
}
//根据billNo查询单个账单详情
export function getBillListByBillNo(billNo) {
  return request({
    url: '/finance/billList/getBillDetailByBillNo',
    method: 'get',
    params: { billNo }
  })
}
export function getBillListByElderId(elderId) {
  return request({
    url: '/finance/billList/getBillDetailByElderId',
    method: 'get',
    params: { elderId }
  })
}


